<?php
namespace app\models;

use yii\db\ActiveRecord;

class BaseRecorder extends ActiveRecord{

    public function get_err(){
        $arr = $this->getErrors();
        $arr = array_shift($arr);
        $arr = array_shift($arr);
        return ['result'=>0,'data'=>$arr];
    }

}
